<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    
<%@ page import="edu.itla.medifacil.persistence.enums.Attribute" %>
<%@ page import="edu.itla.medifacil.persistence.entities.*" %>
<%@ page import="java.util.List" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/redmond/jquery-ui.css" type="text/css" />
	<link rel="stylesheet" href="../css/style.css" />
	
	
<!-- Google Libraries API: JQuery, JQuery UI -->
	<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
	<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js"></script>

	<script type="text/javascript" src="../js/patients/update.js"></script>

	<% TestResult test = (TestResult) request.getSession().getAttribute("test"); %>	

	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
	<title>Agregar Resultado de Prueba</title>
</head>
<body>
	<jsp:include page="../navigation/header.jsp" >
		<jsp:param value="tests" name="active"/>
	</jsp:include>

	<div id="container">
		<form  class="centered" id="assistentForm" method="POST" >
			<fieldset style="margin: 0 auto; float:none;" id="personalInfo">
				<legend>Resultado de Prueba</legend>
				
				<div class="input select required">
					<label for="patient">Paciente</label>
					<select disabled id="patient" name="patientId">
						<option><%= test.getPatient().getName() + " " + test.getPatient().getLastName() %></option>
					</select>
				</div>
				
				<div class="input select required">
					<label for="test">Prueba</label>
					<select disabled id="patient" name="patientId"> id="test" name="testId">
						<option selected><%= test.getTest().getDescription() %></option>
					</select>
				</div>
				
				<div class="input text required">
					<label for="result">Resultado</label>
					<textarea readonly type="text" id="result" name="result"><%= test.getResult() %></textarea>
				</div>	
				
				<button onclick="window.location='/MediFacil/Tests.do?action=edit&id=<%= test.getId() %>';" type="button">Editar</button>
				
			</fieldset>
		
			<div class="clear"></div>

			
		</form> 
	</div>
	
	<jsp:include page="../navigation/copyright.html" />
</body>
</html>